package com.ximcontroller.models.elements;

import java.util.Observable;

public abstract class Element extends Observable implements java.io.Serializable
{
	static final long serialVersionUID = 200911280159L;
	
	private int id;
	private String name;
	private String description;
	
	public Element()
	{
	}
	
	public Element(int id, String name, String description)
	{
		this.id = id;
		this.name = name;
		this.description = description;
	}
	
	public int getID()
	{
		return this.id;
	}
	
	public void setID(int id)
	{
		this.id = id;
		this.notifyObservers();
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
		this.notifyObservers();
	}
	
	public String getDescription()
	{
		return this.description;
	}
	
	public void setDescription(String description)
	{
		this.description = description;
		this.notifyObservers();
	}
	
}
